package com.study.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.project.entity.Rules;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface RulesMapper extends BaseMapper<Rules> {


    Rules queryById(Integer ruleId);

    long count(Rules rules);

    List<Rules> queryAllByLimit(Rules rules, PageRequest pageRequest);
}
